x86/mce: CPU notifiers must not be registered a second time during resume
authorJan Beulich <jbeulich@novell.com>
Fri, 18 Mar 2011 17:15:19 +0000 (17:15 +0000)
committerJan Beulich <jbeulich@novell.com>
Fri, 18 Mar 2011 17:15:19 +0000 (17:15 +0000)
commit38c05fdac1a3a9c1f36a0133a0edf1f4e480809f
tree8b775bb2f7e2aeb8366b05b29a234514826a80b4
parentdf7204aff805d633ace83add39607f8d06e7b342
x86/mce: CPU notifiers must not be registered a second time during resume

While c/s 22964:f71212f712fd and 23051:93c864c16ab1 fixed issues with
CPU onlining, they introduced a problem with resume: mcheck_init() is
also being called on that path, and hence checking whether it's
running on CPU 0, which is generally not a really good thing, is
particularly inappropriate here.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/acpi/power.c
xen/arch/x86/cpu/common.c
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/cpu/mcheck/mce.h
xen/arch/x86/cpu/mcheck/mce_intel.c
xen/include/asm-x86/processor.h